package com.kkb.cubemall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kkb.cubemall.product.entity.AttrAttrgroupRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组关联表
 *
 * @author LiJun
 * @email 978988415@qq.com
 * @date 2021-05-18 19:42:38
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    AttrAttrgroupRelationEntity selectByAttrId(Long id);

    int updateByAttrId(AttrAttrgroupRelationEntity attrAttrgroupRelationEntity);

    void deleteBatch(@Param("list") List<AttrAttrgroupRelationEntity> list);

    void insertBatch(@Param("list") List<AttrAttrgroupRelationEntity> list);
}
